package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 业务附件中间表
 * </p>
 *
 * @author liPeng
 * @since 2024-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("TMS_SYS_FILE_BUSINESS")
@ApiModel(value="TmsSysFileBusiness对象", description="业务附件中间表")
public class SysFileBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableField("ID")
    @TableId
    private Long id;

    @ApiModelProperty(value = "业务id")
    @TableField("BUSINESS_ID")
    private Long businessId;

    @ApiModelProperty(value = "附件id")
    @TableField("FILE_ID")
    private Long fileId;


    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATOR")
    private String creator;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIER")
    private String modifier;

    @ApiModelProperty(value = "删除标识")
    @TableField("IS_DELETED")
    @TableLogic
    private Integer isDeleted;

}
